﻿var http = require('http');
// var User = require('./module/User');
var Teacher = require('./module/Teacher');

http.createServer(function(request, response) {
	response.writeHead(200, {'Content-Type': 'text/html; charset = utf-8'});
	if(request.url != '/favicon.ico'){
		teacher = new Teacher(1, '李四', 21);
		teacher.enter();
		teacher.teach(response);
		response.end('');
	}
}).listen(8000);
console.log('this Server is runing at http://192.168.123.103:8000');